#pragma once

#include "framework.h"
#include "vbm.h"

class ch03_instancing3 : public RenderTest
{
public:
	bool Init(const EngineDesc &desc) final;
	void BeginFrame() final;
	void EngFrame() final;
	void Destroy() final;
private:
	// Member variables
	float aspect;

	GLuint color_buffer;
	GLuint model_matrix_buffer;
	GLuint color_tbo;
	GLuint model_matrix_tbo;
	GLuint render_prog;

	GLint view_matrix_loc;
	GLint projection_matrix_loc;

	VBObject object;
};